#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int missingNumber(int* nums, int numsSize) {
    int i = 0;
    int sum = numsSize;
    for (i = 0; i < numsSize; i++)
    {
        sum += i - nums[i];
    }
    return sum;
}